﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="supplier_hotel.aspx.cs" Inherits="Booking_Hotel.supplier_hotel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
         <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <div>
        
        <table class="style1">
        
            <tr>
                <td class="style2">
                    Tên khách sạn:</td>
                <td>
                    <asp:TextBox ID="txt_TenKhachSan" runat="server" Width="350px"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <td class="style2">
                    Địa chỉ khách sạn:</td>
                <td>
                    <asp:TextBox ID="txt_DiaChiKhachSan" runat="server" Width="350px"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <td class="style2">
                    Tiêu chuẩn sao:</td>
                <td>
                    <asp:DropDownList runat="server" ID="DDL_TieuChuanSao">
                    <asp:ListItem Value="0">0</asp:ListItem>
                    <asp:ListItem Value="1">1 sao</asp:ListItem>
                    <asp:ListItem Value="2">2 sao</asp:ListItem>
                    <asp:ListItem Value="3">3 sao</asp:ListItem>
                    <asp:ListItem Value="4">4 sao</asp:ListItem>
                    <asp:ListItem Value="5">5 sao</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Giải thích thêm:</td>
                <td>
                    <asp:TextBox ID="txt_Desciption" runat="server" Height="100px" 
                        TextMode="MultiLine" Width="350px"></asp:TextBox>
                </td>
            </tr>
            
            <tr>
                <td class="style2" colspan="2">
                    <asp:Button ID="Bt_Insert" runat="server" Text="Thêm Mới" onclick="Bt_Insert_Click" 
                         />
                    <asp:Button ID="Bt_CapNhat" runat="server" Text="Cập Nhật" onclick="Bt_CapNhat_Click"
                        />
                </td>
            </tr>
        </table>
        
    </div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" GridLines="None" 
         onrowcreated="GridView1_RowCreated" 
         onselectedindexchanging="GridView1_SelectedIndexChanging" >
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="Supplier_HotelID" HeaderText="Hotel_ID" 
                ReadOnly="True" SortExpression="Supplier_HotelID" />
            <asp:BoundField DataField="SupplierID" HeaderText="SupplierID" />
            <asp:BoundField DataField="TenKhachSan" HeaderText="TenKhachSan" />
            <asp:BoundField DataField="DiaChiKhachSan" HeaderText="DiaChiKhachSan" ReadOnly="True" 
                SortExpression="DiaChiKhachSan" />
            <asp:BoundField DataField="TieuChuanSao" HeaderText="TieuChuanSao" ReadOnly="True" 
                SortExpression="TieuChuanSao" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                ReadOnly="True" SortExpression="Description" />
          
            <asp:TemplateField HeaderText="Control">
                <ItemTemplate>
                    <table>
                        <tr align="center">
                            <td>
                                <asp:ImageButton ID="ImageButton1" runat="server"
                                    ImageUrl="~/Images/delete.gif" 
                                    OnClientClick="return confirm('Bạn có chắc chắn xóa Suppier này không?');" 
                                    CommandName="Delete" onclick="ImageButton1_Click"  />
                            </td>
                            <td>
                                <asp:ImageButton ID="ImageButton2" runat="server" CommandName="Select" 
                                    ImageUrl="~/Images/edit.gif" />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    </form>
</body>
</html>
